﻿namespace CheckoutCodeKata
{
    public class Scanner
    {
        private readonly Controller _controller;

        public Scanner(Controller controller)
        {
            _controller = controller;
        }

        public void Scan(string itemCode)
        {
            _controller.Add(itemCode);
        }
    }
}
